package cloud.lysky.game.gamesampe.component;

import cloud.lysky.game.gamesampe.entity.Skill;
import com.almasb.fxgl.entity.component.Component;
import io.swagger.v3.oas.annotations.media.Schema;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

import java.util.List;


@Schema(description = "技能组件")
public class SkillComponent extends Component {

    @Schema(description = "技能列表")
    private final ObjectProperty<List<Skill>> skills = new SimpleObjectProperty<>();

    public SkillComponent(List<Skill> skills) {
        this.skills.set(skills);
    }

    public List<Skill> getSkills() {
        return skills.get();
    }

    public ObjectProperty<List<Skill>> skillsProperty() {
        return skills;
    }

    public void setSkills(List<Skill> skills) {
        this.skills.set(skills);
    }




}
